package com.imau.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.imau.common.utils.IdWorkerGen;
import io.mybatis.provider.Entity;
import lombok.Data;

import java.util.Date;

@Data
@Entity.Table("sys_dept")
public class SysDept  {

    /**
     * 部门Id
     */
    @Entity.Column(id = true ,genId = IdWorkerGen.class, updatable = false)

    private String did;
    /**
     * 部门名称
     */
    private String deptName;
    /**
     * 祖籍列表
     */
    private String ancestors;
    /**
     * 父部门ID
     */
    private String parentId;
    /**
     * 部门状态
     */
    private String status;

    private Integer orderNum;

    private String createBy;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss") //数据库导出页面时json格式化
    private Date createTime;


    private String updateBy;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss") //数据库导出页面时json格式化
    private Date updateTime;

}
